﻿using System.ComponentModel.DataAnnotations;

namespace IssueVision.Data.Web
{
    // The MetadataTypeAttribute identifies IssueTypeMetadata as the class
    // that carries additional metadata for the IssueType class.
    [MetadataTypeAttribute(typeof(IssueType.IssueTypeMetadata))]
    public partial class IssueType
    {
        // This class allows you to attach custom attributes to properties
        // of the IssueType class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class IssueTypeMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private IssueTypeMetadata()
            {
            }

            public byte IssueTypeID { get; set; }

            public string Name { get; set; }
        }
    }
}
